package com.dc.refactoring._2_在对象之间搬移特性._5_HideDelegate.newObject;

/**
 * Description: 隐藏“委托关系”_ Person 类，添加委托函数
 * @author: gdc
 * @date: 2020/11/15
 * @version 1.0
 */
public class Person {
    /**
     * 部门引用
     */
    Department department;

    /**
     * 提供委托函数，直接返回经理信息
     */
    public Person getManager() {
        return department.getManage();
    }
}
